package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.entity.AiDeepseekAnswerTotal;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AiDeepseekAnswerTotalMapper;
import com.ruoyi.system.service.IAiDeepseekAnswerTotalService;

/**
 * ai对录音段落的总结---总的Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-12
 */
@Service
public class AiDeepseekAnswerTotalServiceImpl implements IAiDeepseekAnswerTotalService
{
    @Autowired
    private AiDeepseekAnswerTotalMapper aiDeepseekAnswerTotalMapper;

    /**
     * 查询ai对录音段落的总结---总的
     *
     * @param id ai对录音段落的总结---总的主键
     * @return ai对录音段落的总结---总的
     */
    @Override
    public AiDeepseekAnswerTotal selectAiDeepseekAnswerTotalById(Long id)
    {
        return aiDeepseekAnswerTotalMapper.selectAiDeepseekAnswerTotalById(id);
    }

    /**
     * 查询ai对录音段落的总结---总的列表
     *
     * @param aiDeepseekAnswerTotal ai对录音段落的总结---总的
     * @return ai对录音段落的总结---总的
     */
    @Override
    public List<AiDeepseekAnswerTotal> selectAiDeepseekAnswerTotalList(AiDeepseekAnswerTotal aiDeepseekAnswerTotal)
    {
        return aiDeepseekAnswerTotalMapper.selectAiDeepseekAnswerTotalList(aiDeepseekAnswerTotal);
    }

    /**
     * 新增ai对录音段落的总结---总的
     *
     * @param aiDeepseekAnswerTotal ai对录音段落的总结---总的
     * @return 结果
     */
    @Override
    public int insertAiDeepseekAnswerTotal(AiDeepseekAnswerTotal aiDeepseekAnswerTotal)
    {
        aiDeepseekAnswerTotal.setCreateTime(DateUtils.getNowDate());
        return aiDeepseekAnswerTotalMapper.insertAiDeepseekAnswerTotal(aiDeepseekAnswerTotal);
    }

    /**
     * 修改ai对录音段落的总结---总的
     *
     * @param aiDeepseekAnswerTotal ai对录音段落的总结---总的
     * @return 结果
     */
    @Override
    public int updateAiDeepseekAnswerTotal(AiDeepseekAnswerTotal aiDeepseekAnswerTotal)
    {
        aiDeepseekAnswerTotal.setUpdateTime(DateUtils.getNowDate());
        return aiDeepseekAnswerTotalMapper.updateAiDeepseekAnswerTotal(aiDeepseekAnswerTotal);
    }

    /**
     * 批量删除ai对录音段落的总结---总的
     *
     * @param ids 需要删除的ai对录音段落的总结---总的主键
     * @return 结果
     */
    @Override
    public int deleteAiDeepseekAnswerTotalByIds(Long[] ids)
    {
        return aiDeepseekAnswerTotalMapper.deleteAiDeepseekAnswerTotalByIds(ids);
    }

    /**
     * 删除ai对录音段落的总结---总的信息
     *
     * @param id ai对录音段落的总结---总的主键
     * @return 结果
     */
    @Override
    public int deleteAiDeepseekAnswerTotalById(Long id)
    {
        return aiDeepseekAnswerTotalMapper.deleteAiDeepseekAnswerTotalById(id);
    }
}
